package com.u.finance.loans.controller;


import com.u.finance.loans.model.FaceRecognitionDTO;
import com.u.finance.loans.service.IUserService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-28
 */
@RestController
@RequestMapping("/user")
public class UserController {

    private IUserService userService;


    // 上传图片
    public FaceRecognitionDTO uploadImage(@RequestParam("file") MultipartFile picFrame){
        System.out.println("上传图片");
        String userId = "123";
        return userService.checkRealUser(userId, picFrame);
    }

}
